package com.yex.entity.otc;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * otc 订单表
 * </p>
 *
 * @author Little Liu
 * @since 2018-05-12
 */
@TableName("otc_appeal")
public class OtcAppeal extends Model<OtcAppeal> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 订单 id
     */
    private Integer orderId;
    /**
     * 客诉处理状态 1待处理 2已处理
     */
    private Integer serversStatus;
    /**
     * 仲裁处理状态 1待处理 2取消订单 3买方胜诉 4买方胜诉
     */
    private Integer arbitrationStatus;
    /**
     * 上传凭证状态 1待上传 2已经上传
     */
    private Integer upVoucherStatus;
    /**
     * 支付凭证上传时间
     */
    private Date upVoucherDate;
    /**
     * 申请客诉时间
     */
    private Date applyServersDate;
    /**
     * 申请仲裁时间
     */
    private Date applyArbitrationDate;
    /**
     * 客服id--客诉
     */
    private Integer serversId;
    /**
     * 客服id--仲裁
     */
    private Integer arbitrationId;
    /**
     * 处理客诉时间
     */
    private Date serversDate;
    /**
     * 处理仲裁时间
     */
    private Date arbitrationDate;
    private Date createTime;
    
    @TableField(exist=false)
    private Integer oldStatus;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getServersStatus() {
        return serversStatus;
    }

    public void setServersStatus(Integer serversStatus) {
        this.serversStatus = serversStatus;
    }

    public Integer getArbitrationStatus() {
        return arbitrationStatus;
    }

    public void setArbitrationStatus(Integer arbitrationStatus) {
        this.arbitrationStatus = arbitrationStatus;
    }

    public Integer getUpVoucherStatus() {
        return upVoucherStatus;
    }

    public void setUpVoucherStatus(Integer upVoucherStatus) {
        this.upVoucherStatus = upVoucherStatus;
    }

    public Date getUpVoucherDate() {
        return upVoucherDate;
    }

    public void setUpVoucherDate(Date upVoucherDate) {
        this.upVoucherDate = upVoucherDate;
    }

    public Date getApplyServersDate() {
        return applyServersDate;
    }

    public void setApplyServersDate(Date applyServersDate) {
        this.applyServersDate = applyServersDate;
    }

    public Date getApplyArbitrationDate() {
        return applyArbitrationDate;
    }

    public void setApplyArbitrationDate(Date applyArbitrationDate) {
        this.applyArbitrationDate = applyArbitrationDate;
    }

    public Integer getServersId() {
        return serversId;
    }

    public void setServersId(Integer serversId) {
        this.serversId = serversId;
    }

    public Integer getArbitrationId() {
        return arbitrationId;
    }

    public void setArbitrationId(Integer arbitrationId) {
        this.arbitrationId = arbitrationId;
    }

    public Date getServersDate() {
        return serversDate;
    }

    public void setServersDate(Date serversDate) {
        this.serversDate = serversDate;
    }

    public Date getArbitrationDate() {
        return arbitrationDate;
    }

    public void setArbitrationDate(Date arbitrationDate) {
        this.arbitrationDate = arbitrationDate;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    
    

    public Integer getOldStatus() {
		return oldStatus;
	}

	public void setOldStatus(Integer oldStatus) {
		this.oldStatus = oldStatus;
	}

	@Override
    public String toString() {
        return "OtcAppeal{" +
        ", id=" + id +
        ", orderId=" + orderId +
        ", serversStatus=" + serversStatus +
        ", arbitrationStatus=" + arbitrationStatus +
        ", upVoucherStatus=" + upVoucherStatus +
        ", upVoucherDate=" + upVoucherDate +
        ", applyServersDate=" + applyServersDate +
        ", applyArbitrationDate=" + applyArbitrationDate +
        ", serversId=" + serversId +
        ", arbitrationId=" + arbitrationId +
        ", serversDate=" + serversDate +
        ", arbitrationDate=" + arbitrationDate +
        ", createTime=" + createTime +
        "}";
    }
}
